﻿using System;
using SCG = System.Collections.Generic;

using Nemerle.Assertions;
using Nemerle.Utility;

using GASS.OpenCL;

namespace Nemerle.OpenCL {

    public class OpenCLException : Exception {

        public this(code : CLError) {
            base($"OpenCL reported an error: $code");
            this.code = code;
        }

        public this(code : CLError, func : string) {
            base($"OpenCL function '$func' reported an error: $code");
            this.code = code;
        }

        [Accessor] code : CLError;

    }

}